<?php
class Digg extends CWidget{
	public $news_id;
	public $digg_num;
	public $action;
	public function init(){
		if(!empty($this->action)){
			echo "<a class='ding' href='javascript:'>顶($this->digg_num)</a>";
		}else
			echo "<a href='javascript:' class='ding digg-hover' href='javascript:;' id='dc$this->news_id'>顶($this->digg_num)</a>";
		parent::init();
	}
}